import cherrypy, os

class LeafletServer(object):
    @cherrypy.expose
    def default(self, *arg):
        print arg
        return 'not found %s' % str(arg)

conf = {
    '/tiles': {
        'tools.staticdir.on': True,
        'tools.staticdir.dir': '%s/tiles' % os.getcwd()
    }
}
cherrypy.quickstart(LeafletServer(), '/', conf)